const mongoose = require('mongoose');



const repairSchema = new mongoose.Schema({
  username: {
    type: String,
    required: true
  },
  phone: {
    type: String,
    required: true
  },
  machine: {
    type: String,
    required: true
  },
  goods: {
    type: String,
    required: true
  },
  source: {
    type: String,
    required: true
  },
  agent: {
    type: String,
    required: true
  },
  information: {
    type: String,
    required: true
  },
  sfExpressNumber: {//顺丰单号的值
    type: String
  }, creation_time: {
    type: Date,
    default: Date.now // 默认值为当前时间
  }
});

// 创建 Mongoose 模型
const Repair = mongoose.model('Repair', repairSchema);

module.exports = Repair;